/*

package com.daxt.controller.webservice;

import com.alibaba.fastjson.JSON;
import com.daxt.common.result.Result;
import com.daxt.common.util.HttpClientUtil;
import com.daxt.common.util.HttpWsUtil;
import com.daxt.model.ftp.Ftp;
import com.daxt.model.service.accept.vo.WorkOrder;
import com.daxt.utils.FtpUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


import java.io.File;
import java.util.HashMap;

@Api("xxx接口")
@RequestMapping("/webService")
@RestController
public class AcceptClientController {


    @GetMapping("/accept")
    public String accept(){

        WorkOrder workOrder=new WorkOrder();
        workOrder.setAppId("OA");
        workOrder.setAppToken("30159a773aa9de9243541c36871ccaca");
        workOrder.setCompanyCode("离隰公司");
        workOrder.setRwblx("文件");
        workOrder.setRwdh("202005291105199");
        workOrder.setRwdbt("任务单标题");
        workOrder.setGdsj("2022-11-12 17:38:11");
        workOrder.setGdr("李四");
        workOrder.setYwjc("业务简称");
        workOrder.setSl("1");
        workOrder.setGdsm("归档说明");
        workOrder.setScdx("107kb");
        workOrder.setScmc("oa-lx-2152609820.zip");
        workOrder.setSclj("/lixi/OA/2023/2/4/");
        String jsonData= JSON.toJSON(workOrder).toString();

        //String url="http://192.168.0.113:7502/receives/receiveArchiveRequest?wsdl";
        String url="http://10.10.20.77:7502/receives/receiveArchiveRequest?wsdl";
        String soapXml="<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"http://webservice.daxt.com/\">" +
                "   <soapenv:Header/>" +
                "   <soapenv:Body>" +
                "      <web:receiveArchiveRequest>" +
                "         <!--Optional:-->" +
                "         <jsonData>"+jsonData +"</jsonData>" +
                "      </web:receiveArchiveRequest>" +
                "   </soapenv:Body>" +
                "</soapenv:Envelope>";
        String resultStr="";
        try {
            System.out.println("url:"+url);
            System.out.println("jsonData:"+jsonData);
            System.out.println("进来了！执行接口");
            resultStr= HttpWsUtil.postSoap1_1(url, soapXml, "", null, null);

        }catch (Exception e) {
            e.printStackTrace();
            return "接口调用失败！！！！";
        }
        return "接口调用成功，获得的数据是："+resultStr;

        //String result= acceptWebServiceClient.getMessage(jsonData);
    }


    @GetMapping("/accept/upload")
    public String acceptUpload(){

        try{
            Ftp ftp=new Ftp();
            ftp.setIpAddr("10.10.20.79");
            ftp.setPort(21);
            ftp.setUserName("ftps");
            ftp.setPwd("kjWt1s#SH5@S");

            //上传文件逻辑
            FtpUtil.connectFtp(ftp);//链接ftp
            File file = new File("/home/oa-lx-1485435360874860546.zip");//需要上传的文件

            FtpUtil.upload(file,"/lixi/OA/2022/11/11");//参数一：上传的文件。参数二：上传至ftp服务器的路径

            System.out.println("上传路径：/lixi/OA/2022/11/11");

            return "执行完毕！！！";
        }catch(Exception e){
            e.printStackTrace();
            return "上传出错";
        }finally {
            FtpUtil.closeFtp();//关闭链接
        }
    }


}

*/
